import service from "@/utils/http";

/**
 *@name deleteTags
 *  @description 删除分类
 *
 * @param {string} tagId 一个逗号分割的字符
 * */
export const deleteTags = (tagId:string|number) => {
    return service({
        url:"/tag/delete",
        method:"DELETE",
        data:{tagId:tagId}
    })
}

/*获取tag列表*/
export const getTagList = () => {
    return service({
        url:"/tag/list",
        method:"GET"
    })
}


export const addTag = (data:any) => {
    return service({
        url:"/tag/create",
        method:"POST",
        data:data,
    })
}
